﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Project.DBMAPPING;
using Project.IDAO;

namespace Project.DAO
{
    public class FindUnitPriceDAO: IFindUnitPriceDAO
    {
        public SP_PRODUCT_FINDUNITPRICEResult FindUnitPrice(int proId)
        {
            // Declare variable to access database
            DbMappingDataContext database = new DbMappingDataContext();
            return database.SP_PRODUCT_FINDUNITPRICE(proId).FirstOrDefault();
        }
    }
}
